package cn.kgc.vod.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @ClassName ConstantVodUtils
 * @Description: TODO
 * @Author :郭建宾
 * @Date 2020/7/11
 * @Version V1.0
 **/
@Component
public class ConstantVodUtils implements InitializingBean {
    @Value("${aliyun.vod.file.keyid}")
    private  String keyid;
    @Value("${aliyun.vod.file.keysecret}")
    private  String keysecret;

    //定义公开常量
    public static String ACCESS_KEY_SECRET;
    public static String ACCESS_KEY_ID;
    @Override
    public void afterPropertiesSet() throws Exception {
        ACCESS_KEY_SECRET = keysecret;
        ACCESS_KEY_ID = keyid;
    }
}
